package Students

import (
	"github.com/flipped-aurora/gin-vue-admin/server/api/v1"
	"github.com/flipped-aurora/gin-vue-admin/server/middleware"
	"github.com/gin-gonic/gin"
)

type Student_structRouter struct {
}

// InitStudent_structRouter 初始化 Student_struct 路由信息
func (s *Student_structRouter) InitStudent_structRouter(Router *gin.RouterGroup) {
	student_miniRouter := Router.Group("student_mini").Use(middleware.OperationRecord())
	student_miniRouterWithoutRecord := Router.Group("student_mini")
	var student_miniApi = v1.ApiGroupApp.StudentsApiGroup.Student_structApi
	{
		student_miniRouter.POST("createStudent_struct", student_miniApi.CreateStudent_struct)   // 新建Student_struct
		student_miniRouter.DELETE("deleteStudent_struct", student_miniApi.DeleteStudent_struct) // 删除Student_struct
		student_miniRouter.DELETE("deleteStudent_structByIds", student_miniApi.DeleteStudent_structByIds) // 批量删除Student_struct
		student_miniRouter.PUT("updateStudent_struct", student_miniApi.UpdateStudent_struct)    // 更新Student_struct
	}
	{
		student_miniRouterWithoutRecord.GET("findStudent_struct", student_miniApi.FindStudent_struct)        // 根据ID获取Student_struct
		student_miniRouterWithoutRecord.GET("getStudent_structList", student_miniApi.GetStudent_structList)  // 获取Student_struct列表
	}
}
